import request from '@/utils/request'

// 查询租赁台账管理列表
export function listLeaseInfo(query) {
  return request({
    url: '/business/leaseInfo/list',
    method: 'get',
    params: query
  })
}

// 查询租赁台账管理详细 修改用
export function getLeaseInfo(leaseId) {
  return request({
    url: '/business/leaseInfo/' + leaseId,
    method: 'get'
  })
}

// 查询租赁台账管理详细
// export function getLeaseInfo(leaseId) {
//   return request({
//     url: '/business/leaseInfo/listDetail/' + leaseId,
//     method: 'get',
//
//   })
// }

// 新增租赁台账管理
export function addLeaseInfo(data) {
  return request({
    url: '/business/leaseInfo',
    method: 'post',
    data: data
  })
}

// 修改租赁台账管理
export function updateLeaseInfo(data) {
  return request({
    url: '/business/leaseInfo',
    method: 'put',
    data: data
  })
}

// 删除租赁台账管理
export function delLeaseInfo(leaseId) {
  return request({
    url: '/business/leaseInfo/' + leaseId,
    method: 'delete'
  })
}
